<?

namespace scope\facebook\model;


	function install() {

		$client = new \PhpOrient\PhpOrient();
		$client->configure( array(
			'username' => 'root',
			'password' => '!@qwasZX',
			'hostname' => '10.0.0.2',
			'port'     => 2424,
		) );

		$client->connect();

		$ClusterMap = $client->dbOpen( 'omega-cms', 'root', '!@qwasZX' );

		$client->command( 'CREATE CLASS FacebookUser EXTENDS User' );
		$client->command( 'CREATE CLASS FacebookGroup EXTENDS Group' );
		$client->command( 'CREATE CLASS FacebookWall EXTENDS Group' );
		$client->command( 'CREATE CLASS FacebookPost EXTENDS Trust' );
		$client->command( 'CREATE CLASS FacebookComments EXTENDS Love' );
		$client->command( 'CREATE CLASS FacebookMessage EXTENDS Love' );
	}

?>